﻿<UserControl x:Class="Signum.Windows.Widgets.AlertsWidget"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:m="clr-namespace:Signum.Windows">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
		<Border>
		<Border.Background>
			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
				<GradientStop Color="#FFd9eaff" Offset="0"/>
				<GradientStop Color="#FFd2e1f6" Offset="1"/>
			</LinearGradientBrush>
		</Border.Background>
    <Expander Style="{DynamicResource WidgetExpander}" x:Name="expAlerts" Margin="5" IsExpanded="True">
        <Expander.Header>
            <Grid HorizontalAlignment="Stretch" MinWidth="100">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Image Source="..\Images\alert.png" Stretch="Fill" Margin="-8,-2,-2,-2" Width="20" Height="20"/>
					<TextBlock FontFamily="Calibri, Segoe UI" Foreground="#FF1d3132" FontSize="14" VerticalAlignment="Center" Grid.Column="0" Grid.ColumnSpan="2"
					x:Name="tbAlerts" Text="{m:Loc Alerts}" TextWrapping="Wrap" Margin="15,0,0,0"/>
				</Grid>
        </Expander.Header>
		
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>          
                <StackPanel>
					<Line StrokeThickness="2" Fill="Black" />
                    <Button FontFamily="Calibri, Segoe UI" x:Name="btnWarnedAlerts" Click="btnAlerts_Click" Content="{m:Loc WarnedAlerts}" Style="{DynamicResource LinkButtonStyle}"  VerticalAlignment="Top" Foreground="#ff375e5f" Margin="21,0,5,0" HorizontalAlignment="Left" />
                    <Button FontFamily="Calibri, Segoe UI" x:Name="btnCheckedAlerts" Click="btnAlerts_Click" Content="{m:Loc CheckedAlerts}" Style="{DynamicResource LinkButtonStyle}"  VerticalAlignment="Top" Foreground="#ff375e5f" Margin="21,0,5,0" HorizontalAlignment="Left" />
                    <Button FontFamily="Calibri, Segoe UI" x:Name="btnFutureAlerts" Click="btnAlerts_Click" Content="{m:Loc FutureAlerts}" Style="{DynamicResource LinkButtonStyle}"  VerticalAlignment="Top" Foreground="#ff375e5f" Margin="21,0,5,0" HorizontalAlignment="Left" />
                    <Button FontFamily="Calibri, Segoe UI" x:Name="btnNewAlert" Click="btnNewAlert_Click" Content="{m:Loc NewAlert}" Style="{DynamicResource LinkButtonStyle}" VerticalAlignment="Top" Foreground="#ff375e5f" Margin="21,0,5,0" HorizontalAlignment="Left" />
               </StackPanel>
        </Grid>
    </Expander>
	</Border>
</UserControl>
